package org.jeecg.trace.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 原材料批次历史
 * @Author: LiCY
 * @Date:   2024-06-18
 * @Version: V1.0
 */
@Data
@TableName("mes_material_lot_history")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="mes_material_lot_history对象", description="原材料批次历史")
public class MesMaterialLotHistory implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键ID*/
	@Excel(name = "主键ID", width = 15)
    @ApiModelProperty(value = "主键ID")
    private Integer recId;
	/**产线或产线组*/
	@Excel(name = "产线或产线组", width = 15)
    @ApiModelProperty(value = "产线或产线组")
    private String line;
	/**工站*/
	@Excel(name = "工站", width = 15)
    @ApiModelProperty(value = "工站")
    private String stn;
	/**产品*/
	@Excel(name = "产品", width = 15)
    @ApiModelProperty(value = "产品")
    private String partno;
	/**工单ID*/
	@Excel(name = "工单ID", width = 15)
    @ApiModelProperty(value = "工单ID")
    private String woid;
	/**物料*/
	@Excel(name = "物料", width = 15)
    @ApiModelProperty(value = "物料")
    private String itempartno;
	/**物料版本*/
	@Excel(name = "物料版本", width = 15)
    @ApiModelProperty(value = "物料版本")
    private String itemrev;
	/**物料批次*/
	@Excel(name = "物料批次", width = 15)
    @ApiModelProperty(value = "物料批次")
    private String lot;
	/**批次起始数量*/
	@Excel(name = "批次起始数量", width = 15)
    @ApiModelProperty(value = "批次起始数量")
    private BigDecimal qtyStart;
	/**批次使用数量*/
	@Excel(name = "批次使用数量", width = 15)
    @ApiModelProperty(value = "批次使用数量")
    private BigDecimal qty;
	/**不分产品共享*/
	@Excel(name = "不分产品共享", width = 15)
    @ApiModelProperty(value = "不分产品共享")
    @Dict(dicCode = "shared")
    private String shared;
	/**供应商批次*/
	@Excel(name = "供应商批次", width = 15)
    @ApiModelProperty(value = "供应商批次")
    private String supplierLot;
	/**上料时间*/
	@Excel(name = "上料时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "上料时间")
    private Date firsttime;
	/**保留*/
	@Excel(name = "保留", width = 15)
    @ApiModelProperty(value = "保留")
    private String reserved;
	/**状态*/
	@Excel(name = "状态", width = 15)
    @ApiModelProperty(value = "状态")
    @Dict(dicCode = "material_lot_history@status")
    private String status;
	/**操作类型*/
	@Excel(name = "操作类型", width = 15)
    @ApiModelProperty(value = "操作类型")
    @Dict(dicCode = "material_lot_history@action")
    private String action;
	/**盘点类型*/
	@Excel(name = "盘点类型", width = 15)
    @ApiModelProperty(value = "盘点类型")
    @Dict(dicCode = "changetyp")
    private String changetyp;
	/**原因代码*/
	@Excel(name = "原因代码", width = 15)
    @ApiModelProperty(value = "原因代码")
    @Dict(dicCode = "reasoncod")
    private String reasoncod;
	/**操作者*/
	@Excel(name = "操作者", width = 15)
    @ApiModelProperty(value = "操作者")
    private String user;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date ctime;
}
